import request from '@/utils/request'

// 查询无人机采集列表
export function listDrone(query) {
  return request({
    url: '/human/drone/list',
    method: 'get',
    params: query
  })
}

// 查询无人机采集详细
export function getDrone(id) {
  return request({
    url: '/human/drone/' + id,
    method: 'get'
  })
}

// 新增无人机采集
export function addDrone(data) {
  return request({
    url: '/human/drone',
    method: 'post',
    data: data
  })
}

// 修改无人机采集
export function updateDrone(data) {
  return request({
    url: '/human/drone',
    method: 'put',
    data: data
  })
}

// 删除无人机采集
export function delDrone(id) {
  return request({
    url: '/human/drone/' + id,
    method: 'delete'
  })
}
